<?php if (!defined('THINK_PATH')) exit(); /*a:5:{s:76:"F:\PHP\PHPTutorial\WWW\tp5\public/../application/index\view\index\index.html";i:1539244179;s:65:"F:\PHP\PHPTutorial\WWW\tp5\application\index\view\public\top.html";i:1535534750;s:67:"F:\PHP\PHPTutorial\WWW\tp5\application\index\view\public\login.html";i:1535534751;s:74:"F:\PHP\PHPTutorial\WWW\tp5\application\index\view\public\cookie_count.html";i:1539243968;s:68:"F:\PHP\PHPTutorial\WWW\tp5\application\index\view\public\footer.html";i:1538291742;}*/ ?>
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <link rel="shortcut icon" href="/tp5/public/static/logo.ico" />
    <link rel="stylesheet" href="/tp5/public/static/assets/arr_css/bootstrap.min.css">
    <link rel="stylesheet" href="/tp5/public/static/assets/index_css/head.css">
    <link rel="stylesheet" href="/tp5/public/static/assets/index_css/footer.css">
    <link rel="stylesheet" href="/tp5/public/static/assets/index_css/index.css">
    <link rel="stylesheet" href="/tp5/public/static/assets/index_brand/css/Cooldog.css">
    <link rel="stylesheet" href="/tp5/public/static/assets/index_brand/css/iconfont.css">
    <link href="/tp5/public/static/layui/css/layui.css" rel="stylesheet" type="text/css" />
    <link href="/tp5/public/static/layer/layui.css" rel="stylesheet" type="text/css" />


    <title>莫愁商城-O2O家居建材免息消费平台</title>


    <style>
    </style>

</head>

<body>



    <!-- 页面头部 -->
    <!-- <div id="head" class="head"></div> -->
    <style>
    .formpost input {
        margin: 15px auto;
        border: 0;
        border-bottom: 1px solid black;
        border-color: #ccc;
        height: 40px;
    }
</style>
<nav id="top" class="top" style="height: 150px;background: #fff;border-bottom: 1px solid #F2F2F2;">
    <div class="box">
        <div class="box_dao">
            <span>
                <img src="/tp5/public/static/assets/images/dizhi.png" alt="">
                <span style="color: #e83f44;">&nbsp;武汉站</span>
                <a href="">
                    <切换>
                </a>
                <img src="/tp5/public/static/assets/images/tel.png" alt="">
                <span>400-900-2355</span>
            </span>


            <span class="nav pull-right">

                <?php if((!empty(\think\Session::get('member_phone')))): ?>
                <img src="/tp5/public/static/assets/images/zhanghu.png" alt="" style="margin-right: 5px;">
                <a href="<?php echo url('Core/index'); ?>">我的账户</a>
                <?php else: if((!empty(\think\Session::get('seller_id')))): ?>
                <img src="/tp5/public/static/assets/images/zhanghu.png" alt="">
                <a href="<?php echo url('Core/index'); ?>">我的账户</a>
                <img src="/tp5/public/static/assets/images/dingdan.png" alt="">
                <a href="<?php echo url('Index/generate'); ?>">生成订单</a>
                <?php endif; endif; ?>





                <span>
                    <?php if((empty(\think\Session::get('member_phone')) && empty(\think\Session::get('seller_id')))): ?>
                    <img src="/tp5/public/static/assets/images/login_logo.png" alt="" style="margin-right:10px;">
                    <a style="margin: 0;cursor:pointer" onclick="login()">登录</a>
                    <span>/</span>
                    <a style="margin: 0;cursor:pointer" onclick="register_to()">注册</a>
                    <?php else: if((!empty(\think\Session::get('member_phone')))): ?>
                    <span style="color:#e83f44">欢迎您！</span><?php echo \think\Session::get('member_phone'); ?>
                    <a style="margin: 0;cursor:pointer;color:#e83f44;" onclick="delselling()">注销！</a>
                    <?php else: if((!empty(\think\Session::get('seller_id')))): ?>
                    <span style="color:#e83f44">欢迎您！</span><?php echo \think\Session::get('seller_name'); ?>
                    <a style="margin: 0;cursor:pointer;color:#e83f44;" onclick="delselling()">注销！</a>


                    <?php endif; endif; ?>

                    <!-- <span style="color:#e83f44">欢迎您！</span><?php echo \think\Session::get('member_phone'); ?> <a style="margin: 0;cursor:pointer;color:#e83f44;" onclick="delselling()">注销！</a> -->
                    <?php endif; ?>

                </span>
            </span>
        </div>
    </div>
    <div style="height: 50px;"></div>
    <div>
        <div class="Navigation">

            <div class="logo">
                <img src="/tp5/public/static/assets/images/logo2.png" alt="">
            </div>

            <div id="Navigation_content" class="Navigation_content">
                <ul>
                    <li class="li_1">
                        <a href="<?php echo url('Index/index'); ?>">首页</a>
                    </li>
                    <li class="li_2">
                        <a href="<?php echo url('Class/index'); ?>">分类</a>
                    </li>
                    <li class="li_3">
                        <a href="<?php echo url('House/index'); ?>">晒家</a>
                    </li>
                    <li class="li_4">
                        <a href="<?php echo url('Ferr/index'); ?>">免息莫愁</a>
                    </li>
                    <li class="li_5">
                        <a href="<?php echo url('About/index'); ?>">关于我们</a>
                    </li>
                </ul>
            </div>

            <div class="search_box">
                <input type="text" name="" id="ssk" placeholder="搜索">
                <div class="ssbut">
                    <i class="layui-icon">&#xe615;</i>
                </div>

            </div>
            <!-- <div class="search_ssk">
                <input id="ss_text" type="text">
                <a class="glyphicon glyphicon-search" id="ssanniu"></a>
            </div> -->

        </div>
    </div>
</nav>
<!-- 登录login -->
<div id="login_form" style="background-color:#fff;display:none;">
    <div style="width:100%;margin-top: 35px;">
        <div style="float:left;margin:10px 25%;">
            <img src="/tp5/public/static/assets/images/LOGO.png" alt="" style="width:200px;height:45px;">
        </div>
        <div style="float:left;margin:20px -52%">
            <h1 style="font-size:30px;text-align:center;">莫愁商城</h1>
        </div>
    </div>
    <div style="clear:both"></div>
    <div style="width:100%;">
        <h1 style="text-align:center;font-size:16px;"> </h1>
    </div>
    <div style="width:100%;text-align:center;margin:60px auto;" id="login_go">
        <form action="" id="login_formpost" class="formpost">
            <div style="width:100%;">
                <input type="text" style="width:350px;" name="phone" placeholder="请输入手机号">
            </div>
            <div style="width:100%;">
                <input type="password" style="width:350px;" name="pwd" autocomplete="off" placeholder="请输入登录密码">
            </div>
            <div style="width:350px;text-align:center;">
                <a style="float:left;font-size:16px;color:#007bbb;margin-left:11%;cursor:pointer" onclick="register()">快速注册</a>

                <a href="" style="float:right;font-size:16px;color:#007bbb;margin-right:-50px;">忘记密码？</a>

            </div>
        </form>
        <div style="width:100%;margin:48px auto;">
            <button type="button" class="layui-btn layui-btn-danger" style="width:350px;margin:0px 9%" onclick="go_login()">登录</button>
        </div>
    </div>
    <!-- 切换注册 -->
    <div style="width:100%;text-align:center;margin:0px auto; display:none;" id="register_go">
        <form action="" id="formpost_register" class="formpost">
            <div style="width:100%;">
                <input type="text" style="width:340px;" id="code_phone_to" name="phone" placeholder="请输入手机号">
            </div>
            <div style="width:100%;">
                <div style="width:422px;float:left;">
                    <input type="text" style="width:230px;" name="code" autocomplete="off" placeholder="请输入短信验证码">
                    <a style="color:#007bbb;cursor:pointer" id="go_code_to" onclick="codeto(10)">获取短信验证码</a>
                </div>
            </div>
            <div style="clear:both"></div>
            <div style="width:100%;">
                <input type="password" style="width:340px;" name="pwd" autocomplete="off" placeholder="请输入登录密码">
            </div>
            <div style="clear:both"></div>

        </form>
        <div style="width:100%;margin:32px auto 0 auto;">
            <div style="text-align: left;margin-left: 40px;margin-bottom: 10px;">
                <input onclick="xuanze1()" id="xuanze1" type="checkbox" value="值" name="名称" checked>
                <span>我已阅读并同意
                    <a target="view_window" href="http://www.mochoushop.com/index/login/agreement" style="color: #E83F44;">《莫愁用户服务协议》</a>
                </span>
            </div>
            <button id="zhuce1" type="button" class="layui-btn layui-btn-danger" style="width:350px;margin:0px 9%" onclick="go_register_to()">注册</button>
            <h1 style="margin:20px auto 0 auto;">已有账号?
                <a style="color:#007bbb;cursor:pointer" onclick="login_to()">去登录</a>
            </h1>
        </div>


    </div>

</div>





<!-- 注册register -->
<div id="register_form" style="background-color:#fff;display:none;">
    <div style="width:100%;margin-top: 35px;">
        <div style="float:left;margin:10px 25%;">
            <img src="/tp5/public/static/assets/images/LOGO.png" alt="" style="width:200px;height:45px;">
        </div>
        <div style="float:left;margin:20px -52%">
            <h1 style="font-size:30px;text-align:center;">莫愁商城</h1>
        </div>
    </div>
    <div style="clear:both"></div>
    <div style="width:100%;">
        <h1 style="text-align:center;font-size:16px;"> </h1>
    </div>
    <div style="width:100%;text-align:center;margin:60px auto;display:none;" id="login_go_to">
        <form action="" id="login_formpost_to" class="formpost">
            <div style="width:100%;">
                <input type="text" style="width:350px;" name="phone" placeholder="请输入手机号">
            </div>
            <div style="width:100%;">
                <input type="password" style="width:350px;" name="pwd" autocomplete="off" placeholder="请输入登录密码">
            </div>
            <div style="width:350px;text-align:center;">
                <a style="float:left;font-size:16px;color:#007bbb;margin-left:11%;cursor:pointer" onclick="register_res()">快速注册</a>

                <a href="" style="float:right;font-size:16px;color:#007bbb;margin-right:-50px;">忘记密码？</a>

            </div>
        </form>
        <div style="width:100%;margin:48px auto;">
            <button type="button" class="layui-btn layui-btn-danger" style="width:350px;margin:0px 9%" onclick="go_login_to()">登录</button>
        </div>
    </div>
    <!-- 切换注册 -->
    <div style="width:100%;text-align:center;margin:0px auto; " id="register_go_to">
        <form action="" id="formpost_register_to" class="formpost">
            <div style="width:100%;">
                <input type="text" style="width:340px;" id="code_phone" name="phone" placeholder="请输入手机号">
            </div>
            <div style="width:100%;">
                <div style="width:422px;float:left;">
                    <input type="text" style="width:230px;" name="code" autocomplete="off" placeholder="请输入短信验证码">
                    <a style="color:#007bbb;cursor:pointer" id="go_code" onclick="code(10)">获取短信验证码</a>
                </div>
                <!-- <div style="float:left;">
                            
                        </div> -->
            </div>
            <div style="width:100%;">
                <input type="password" style="width:340px;" name="pwd" autocomplete="off" placeholder="请输入登录密码">
            </div>
            <div style="clear:both"></div>

        </form>
        <div style="width:100%;margin:32px auto 0 auto;">
            <div style="text-align: left;margin-left: 40px;margin-bottom: 10px;">
                <input onclick="xuanze()" id="xuanze" type="checkbox" value="值" name="名称" checked>
                <span>我已阅读并同意
                    <a target="view_window" href="http://www.mochoushop.com/index/login/agreement" style="color: #E83F44;">《莫愁用户服务协议》</a>
                </span>
            </div>


            <button id="zhuce" type="button" class="layui-btn layui-btn-danger" style="width:350px;margin:0px 9%" onclick="go_register()">注册</button>
            <h1 style="margin:20px auto 0 auto;">已有账号?
                <a style="color:#007bbb;cursor:pointer" onclick="login_res()">去登录</a>
            </h1>
        </div>





    </div>

</div>
<script>
    function xuanze() {
        var xuanze = $("#xuanze[type='checkbox']").is(':checked')

        if (xuanze == true) {
            $("#zhuce").removeClass('layui-btn-disabled')
            $("#zhuce").addClass('layui-btn-danger')
            $("#zhuce").attr("onclick", "go_register()")
        } else {
            $("#zhuce").removeClass('layui-btn-danger')
            $("#zhuce").addClass('layui-btn-disabled')
            $("#zhuce").attr("onclick", "0")
        }

    }

    function xuanze1() {
        var xuanze = $("#xuanze1[type='checkbox']").is(':checked')

        if (xuanze == true) {
            $("#zhuce1").removeClass('layui-btn-disabled')
            $("#zhuce1").addClass('layui-btn-danger')
            $("#zhuce1").attr("onclick", "go_register()")
        } else {
            $("#zhuce1").removeClass('layui-btn-danger')
            $("#zhuce1").addClass('layui-btn-disabled')
            $("#zhuce1").attr("onclick", "0")
        }

    }
</script>
<script>
    function delselling() {
        $.ajax({
            type: "POST",
            url: "<?php echo url('Login/delselling'); ?>",
            beforeSend: function () {
                layer.load(0, {
                    shade: false
                });
            },
            success: function (msg) {
                if (msg == 1) {
                    layer.msg('已注销登录!', {
                        icon: 1
                    });
                    history.go(0);
                }

            },
            complete: function () {
                layer.closeAll('loading');
            }
        });
    }

    function register_to() {
        layer.open({
            type: 1,
            title: '莫愁商城',

            skin: 'demo-class', //加上边框
            area: ['432px', '515px'], //宽高
            content: $('#register_form'),
            end: function () {
                $("#register_form").hide();
            }
        });
    }


    function login() {
        //页面层
        layer.open({
            type: 1,
            title: '莫愁商城',
            skin: 'demo-class', //加上边框
            area: ['432px', '515px'], //宽高
            content: $('#login_form'),
            end: function () {
                $("#login_form").hide();
            }
        });
    }


    function register() {
        $('#login_go').hide();
        $('#register_go').show();
        // $
    }

    function login_to() {
        $('#login_go').show();
        $('#register_go').hide();
    }


    function login_res() {
        $('#login_go_to').show();
        $('#register_go_to').hide();
    }

    function register_res() {
        $('#login_go_to').hide();
        $('#register_go_to').show();
        // $
    }

    // 注册一
    function go_register_to() {
        var formData = $("#formpost_register").serialize();
        // console.log(formData);
        $.ajax({
            type: "POST",
            url: "<?php echo url('Login/register'); ?>",
            data: formData, // 要提交的表单 
            beforeSend: function () {
                layer.load(0, {
                    shade: false
                });
            },
            success: function (msg) {
                console.log(msg);
                if (msg == 1) {
                    layer.msg('恭喜您，注册成功！', {
                        icon: 1
                    });
                    $('#login_go').show();
                    $('#register_go').hide();
                } else if (msg == 2) {
                    layer.msg('注册失败，请重试');
                } else if (msg == 3) {
                    layer.msg('验证码错误，请重试！');
                }
                // if (msg == 1111) {
                //     layer.msg('已通过!ヾ(o◕∀◕)ﾉ 好棒~', {icon: 1});
                //     history.go(0); 
                // }else{
                //     layer.msg('申请失败,请重新再试!');
                // }
            },
            complete: function () {
                layer.closeAll('loading');
            }
        });


    }

    // 注册二
    function go_register() {
        var formData = $("#formpost_register_to").serialize();
        // console.log(formData);
        $.ajax({
            type: "POST",
            url: "<?php echo url('Login/register'); ?>",
            data: formData, // 要提交的表单 
            beforeSend: function () {
                layer.load(0, {
                    shade: false
                });
            },
            success: function (msg) {
                console.log(msg);
                if (msg == 1) {
                    layer.msg('恭喜您，注册成功！', {
                        icon: 1
                    });
                    $('#login_go_to').show();
                    $('#register_go_to').hide();
                } else if (msg == 2) {
                    layer.msg('注册失败，请重试');
                } else if (msg == 3) {
                    layer.msg('验证码错误，请重试！');
                }
                // if (msg == 1111) {
                //     layer.msg('已通过!ヾ(o◕∀◕)ﾉ 好棒~', {icon: 1});
                //     history.go(0); 
                // }else{
                //     layer.msg('申请失败,请重新再试!');
                // }
            },
            complete: function () {
                layer.closeAll('loading');
            }
        });


    }


    // 验证码一
    function code(t) {
        $('#go_code').disabled = true;

        var phone = $('#code_phone').val();
        console.log(phone);
        if (phone == '' || phone.length < 11 || phone.length > 11 || !(
                /^((\d{3}-\d{8}|\d{4}-\d{7,8})|(1[3|5|7|8][0-9]{9}))$/.test(phone))) {
            layer.msg('请输入正确的手机号码');
        } else {
            for (i = 1; i <= t; i++) {
                window.setTimeout("update_p(" + i + "," + t + ")", i * 1000);
            }

            $.ajax({
                type: "POST",
                url: "<?php echo url('Login/verification'); ?>",
                data: {
                    'phone': phone
                }, // 要提交的表单 
                beforeSend: function () {
                    layer.load(0, {
                        shade: false
                    });
                },
                success: function (msg) {
                    console.log(msg);
                    if (msg == 1) {
                        layer.msg('短信已发送', {
                            icon: 1
                        });
                    } else if (msg == 2) {
                        layer.msg('注册失败，请重试！');
                    } else if (msg == 4) {
                        layer.msg('请不要重复发送短信！');
                    } else if (msg == 5) {
                        layer.msg('手机号码已存在！');
                    }
                },
                complete: function () {
                    layer.closeAll('loading');
                }
            });
        }

    }

    function update_p(num, t) {
        if (num == t) {
            $('#go_code').html('获取短信验证码');
            $('#go_code').css("color", "#007bbb");
            $('#go_code').disabled = false;
            $('#go_code').css("pointer-events", "auto");
        } else {
            printnr = t - num;
            // document.myform.phone.value = " (" + printnr +")秒后重新发送";
            $('#go_code').html(" " + printnr + "秒后重新发送");
            $('#go_code').css("color", "#ccc");
            $('#go_code').css("pointer-events", "none");
        }
    }


    // 验证码二
    function codeto(t) {
        $('#go_code_to').disabled = true;

        var phone = $('#code_phone_to').val();
        console.log(phone);
        if (phone == '' || phone.length < 11 || phone.length > 11 || !(
                /^((\d{3}-\d{8}|\d{4}-\d{7,8})|(1[3|5|7|8][0-9]{9}))$/.test(phone))) {
            layer.msg('请输入正确的手机号码');
        } else {
            for (i = 1; i <= t; i++) {
                window.setTimeout("update_po(" + i + "," + t + ")", i * 1000);
            }

            $.ajax({
                type: "POST",
                url: "<?php echo url('Login/verification'); ?>",
                data: {
                    'phone': phone
                }, // 要提交的表单 
                beforeSend: function () {
                    layer.load(0, {
                        shade: false
                    });
                },
                success: function (msg) {
                    console.log(msg);
                    if (msg == 1) {
                        layer.msg('短信已发送', {
                            icon: 1
                        });
                    } else if (msg == 2) {
                        layer.msg('注册失败，请重试！');
                    } else if (msg == 4) {
                        layer.msg('请不要重复发送短信！');
                    } else if (msg == 5) {
                        layer.msg('手机号码已存在！');
                    }
                },
                complete: function () {
                    layer.closeAll('loading');
                }
            });
        }

    }

    function update_po(num, t) {
        if (num == t) {
            $('#go_code_to').html('获取短信验证码');
            $('#go_code_to').css("color", "#007bbb");
            $('#go_code_to').disabled = false;
            $('#go_code_to').css("pointer-events", "auto");
        } else {
            printnr = t - num;
            // document.myform.phone.value = " (" + printnr +")秒后重新发送";
            $('#go_code_to').html(" " + printnr + "秒后重新发送");
            $('#go_code_to').css("color", "#ccc");
            $('#go_code_to').css("pointer-events", "none");
        }
    }


    // // 登录一
    function go_login() {
        var formData = $("#login_formpost").serialize();
        //  // console.log(formData);
        $.ajax({
            type: "POST",
            url: "<?php echo url('Login/login_add'); ?>",
            data: formData, // 要提交的表单 
            beforeSend: function () {
                layer.load(0, {
                    shade: false
                });
            },
            success: function (msg) {
                console.log(msg);
                if (msg == 1) {
                    layer.msg('登录成功！', {
                        icon: 1
                    });
                    history.go(0);
                } else if (msg == 2) {
                    layer.msg('您还没有注册,请前往注册！');
                } else {
                    layer.msg('密码错误,请重新登录！');
                }
                // if (msg == 1111) {
                //     layer.msg('已通过!ヾ(o◕∀◕)ﾉ 好棒~', {icon: 1});
                //     history.go(0); 
                // }else{
                //     layer.msg('申请失败,请重新再试!');
                // }
            },
            complete: function () {
                layer.closeAll('loading');
            }
        });
    }


    // 登录二
    function go_login_to() {
        var formData = $("#login_formpost_to").serialize();
        // console.log(formData);
        $.ajax({
            type: "POST",
            url: "<?php echo url('Login/login_add'); ?>",
            data: formData, // 要提交的表单 
            beforeSend: function () {
                layer.load(0, {
                    shade: false
                });
            },
            success: function (msg) {
                // console.log(msg);
                if (msg == 1) {
                    layer.msg('登录成功！', {
                        icon: 1
                    });
                    history.go(0);
                } else if (msg == 2) {
                    layer.msg('您还没有注册,请前往注册！');
                } else {
                    layer.msg('密码错误,请重新登录！');
                }
                // if (msg == 1111) {
                //     layer.msg('已通过!ヾ(o◕∀◕)ﾉ 好棒~', {icon: 1});
                //     history.go(0); 
                // }else{
                //     layer.msg('申请失败,请重新再试!');
                // }
            },
            complete: function () {
                layer.closeAll('loading');
            }
        });
    }
</script>


<!--     <div class="head_left">
        <div>
            <p>购物指南</p>
            <ul>
                <li><a id="head_left_a1" href="../sjdinggou/sjdinggou.html">· 订购流程</a></li>
                <li><a id="head_left_a2" href="../sjzhifu/sjzhifu.html">· 支付方式</a></li>
            </ul>
        </div>
        <div>
            <p>购物保障</p>
            <ul>
                <li><a id="head_left_a3" href="../sjpinpai/sjpinpai.html">· 品牌保障</a></li>
                <li><a id="head_left_a4" href="../sjzhuce/sjzhuce.html">· 注册协议</a></li>
                <li><a id="head_left_a5" href="../sjyinsi/sjyinsi.html">· 隐私保护</a></li>
            </ul>
        </div>
        <div>
            <p>常见问题</p>
            <ul>
                <li><a id="head_left_a6" href="../sjyanhuo/sjyanhuo.html">· 验货签收</a></li>
                <li><a id="head_left_a7" href="../sjshouhuo/sjshouhuo.html">· 交货方式</a></li>
                <li><a id="head_left_a8" href="../sjtuihuo/sjtuihuo.html">· 退货说明</a></li>
            </ul>
        </div>
    </div>
 -->
    <!-- 统计首页浏览量和访客量 -->
    <?php
    date_default_timezone_set("Asia/Shanghai"); // 不设置默认为国外时间
    $dates=date("Ymd");
    $shijian=date("YmdHis");
    $dates_flag=0;
    #echo $shijian."<br>";
    // pv
    if(!isset($_COOKIE["cookie_pv"])){
        #setcookie("cookie_pv",$shijian,time()+3600*24); //有效期为24小时
        #setcookie("cookie_pv",$shijian,strtotime(date("Y-m-d")."0:0:0")+24*3600); //有效期是今天到今晚12点,明天开始就失效了。(相当于UV，每个浏览器每天访问N次只加1，也就是访客数)
        #setcookie("cookie_pv",$shijian,0); //关闭浏览器自动清除cookie。(相当于假PV，每当打开浏览器访问1次就加1)
        setcookie("cookie_pv",$shijian,time()+0); //设置有效期为0秒钟,即可以疯狂F5刷次数。(相当于真正的PV，每访问或刷新页面就会累加，也就是浏览量)
        $mysqli_conn = mysqli_connect('39.108.156.14','root','a7329500',"mochoushop");
        if(mysqli_connect_errno($mysqli_conn)){
            echo "连接 MySQL 失败: " . mysqli_connect_error();
        }
        $a=mysqli_query($mysqli_conn,"select date from drm_cookie_count") or die("查询失败");
        //$rs=mysqli_fetch_array($a); //若不添加查询条件那么这种不循环只能获取第一条数据
        //print_r($rs);//这个可以显示所有的数组
        while($rs=mysqli_fetch_array($a)){ //循环的话可以获取所有数据,注意php7以上用mysqli了
            #print_r($rs['date']);echo "<br>";
            // 首先判断数据库里面有没有这个日期
            if($rs['date']==$dates){ //如果有这个日期就将dates_flag变量赋值为1
                $dates_flag=1;
            }
        }
        if($dates_flag==1){ //如果$dates_flag为1就说明数据库里面有这个日期，有这个日期就直接使用update更新pv_count加1
            mysqli_query($mysqli_conn,"update drm_cookie_count set pv_count=pv_count+1 where date='$dates'");
        }else if($dates_flag==0){ //如果$dates_flag为0就说明数据库里面没有这个日期，没有这个日期说明是新的一天就需要insert插入
            mysqli_query($mysqli_conn,"insert into drm_cookie_count (date,pv_count) values('$dates','1')");
        }

        // 获取数据库里面的pv_count值
        #$pv_count=$rs[0];
        #$pv_count+=1;
        // 将获取到的数据库里面的pv_count值加1后更新到数据库,试下能不能直接在数据库里面加1：update set pv_count=pv_count+1;发现可以的
        //mysqli_query($mysqli_conn,"update drm_cookie_count set pv_count='$pv_count' where date=''");
    }
    $dates_flag=0; //为uv判断日期,重置
    // uv
    if(!isset($_COOKIE["cookie_uv"])){
        setcookie("cookie_uv",$shijian,strtotime(date("Y-m-d")."0:0:0")+24*3600); //有效期是今天到今晚12点,明天开始就失效了。(相当于UV，每个浏览器每天访问N次只加1，也就是访客数)
        $mysqli_conn = mysqli_connect('39.108.156.14','root','a7329500',"mochoushop");
        if(mysqli_connect_errno($mysqli_conn)){
            echo "连接 MySQL 失败: " . mysqli_connect_error();
        }
        $a=mysqli_query($mysqli_conn,"select date from drm_cookie_count") or die("查询失败");
        while($rs=mysqli_fetch_array($a)){ //循环的话可以获取所有数据,注意php7以上用mysqli了
            #print_r($rs['date']);echo "<br>";
            // 首先判断数据库里面有没有这个日期
            if($rs['date']==$dates){ //如果有这个日期就将dates_flag变量赋值为1
                $dates_flag=1;
            }
        }
        if($dates_flag==1){ //如果$dates_flag为1就说明数据库里面有这个日期，有这个日期就直接使用update更新uv_count加1
            mysqli_query($mysqli_conn,"update drm_cookie_count set uv_count=uv_count+1 where date='$dates'");
        }else if($dates_flag==0){ //如果$dates_flag为0就说明数据库里面没有这个日期，没有这个日期说明是新的一天就需要insert插入
            mysqli_query($mysqli_conn,"insert into drm_cookie_count (date,uv_count) values('$dates','1')");
        }
    }

    //print_r($_COOKIE);
?>

















    <div class="totop">
        <img id="toTOP" src="/tp5/public/static/assets/images/toTOP.png" alt="">
        <img id="toTOP2" src="/tp5/public/static/assets/images/toTOP2.png" alt="" style="display:none;">

    </div>


    <div id="myCarousel" class="carousel slide" style="margin-bottom: 50px;" data-ride="carousel">
        <!-- 轮播（Carousel）指标 -->
        <ol class="carousel-indicators">
            <li data-target="#myCarousel" data-slide-to="0" class="active"></li>
            <li data-target="#myCarousel" data-slide-to="1"></li>

        </ol>
        <!-- 轮播（Carousel）项目 -->
        <div class="carousel-inner">
            <div class="item active">
                <img src="/tp5/public/static/assets/images/band_4.png" style="width:100%">

            </div>
            <div class="item">
                <img src="/tp5/public/static/assets/images/band_3.png" style="width:100%">
            </div>

        </div>
        <!-- 轮播（Carousel）导航 -->
        <a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
            <span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
            <span class="sr-only">Previous</span>
        </a>
        <a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
            <span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
            <span class="sr-only">Next</span>
        </a>
    </div>




    <!-- <div class="dapei">
        <div class="dapei_left">
            <img src="/tp5/public/static/assets/images/youhui.png" alt="" style="margin-bottom: 50px;">
            <img src="/tp5/public/static/assets/images/sheji.png" alt="">
            <a href=""><img class="dapei_sq1" src="/tp5/public/static/assets/images/bank3.jpg" alt=""></a>
        </div>
        <div><img src="/tp5/public/static/assets/images/yangshi.png" alt="">
            <a href=""><img class="dapei_sq2" src="/tp5/public/static/assets/images/bank3.jpg" alt=""></a>
        </div>
    </div> -->
    <!--  <div id="z_brand">
       <div style="width:50%;float:left;">
            <div style="width:500px;text-align:center;float:right;margin:45px;" >
                <p>1 5 0 个 品 牌</p>
                <p>强势入驻</p>
                <br>
                <span>一站式家具，品类齐全</span>
                <br>
                <br>
                <a href=""><img src="/tp5/public/static/assets/images/bank3.jpg" alt=""></a>
                
            </div>
            <div style="clear:both;"></div>
       </div>
       <div style="width:50%;float:left;">
            <div style="width:500px;text-align:center;float:right;margin-top:30px" >
                <span>最高可借额度（元）</span>
                <br>
                <br>
                <p>300000</p>
                
                <br>
                <div style="margin: 0 auto; width: 300px;height: 1px;background: #ccc;"></div>
                
                <br>
                <p>免息贷款</p>

                <span>最长可达36期</span>
                <br>
                <br>
                <a href=""><img src="/tp5/public/static/assets/images/bank3.jpg " alt=" "></a>
                
            </div>
            <div style="clear:both;"></div>
       </div>
        <div style="clear:both;"></div>
    </div> -->
    <div class="bank">
        <div class="bank_1">
            <a href="<?php echo url('Class/index'); ?>">
                <div class="bank_img">
                    <img src="/tp5/public/static/assets/images/bank2.png" alt="">
                </div>
            </a>
            <!-- <div class="bank_sq">
                <p>150个品牌</p>
                <p>强势入驻</p>
                <span>一站式家具，品类齐全</span>
                <a href=""><img src="/tp5/public/static/assets/images/bank3.jpg" alt=""></a>
            </div> -->
        </div>
        <div class="bank_2">
            <a href="<?php echo url('ferr/index'); ?>">
                <div class="bank_img">
                    <img src="/tp5/public/static/assets/images/bank1.png" alt="">
                </div>
            </a>

            <!-- <div class="bank_sq1" style="right: -20px;">
                <span>最高可借额度（元）</span>
                <p>300000</p>
                <div style="margin: 0 auto; width: 300px;height: 1px;background: #ccc;"></div>
                <p>免息贷款</p>
                <span>最长可达36期</span>
                <a href=""><img src="/tp5/public/static/assets/images/bank3.jpg" alt=""></a>
            </div> -->
        </div>
    </div>

    <!-- 家具分类 -->
    <div class="page_title">
        <img src="/tp5/public/static/assets/images/classificationoffurniture.png" alt="">
    </div>

    <div class="classification">
        <div>
            <a href="<?php echo url('Class/class_index',array('type'=>'家具')); ?>">
                <img class="weixuanzhong jiaju" src="/tp5/public/static/assets/images/icon_1_nol.png" alt="">
                <img class="xuanzhong" src="/tp5/public/static/assets/images/icon_1_sel.png" alt="">
            </a>
            <span>家具</span>
        </div>
        <div>
            <a href="<?php echo url('Class/class_index',array('type'=>'卫浴')); ?>">
                <img class="weixuanzhong weiyu" src="/tp5/public/static/assets/images/icon_2_nol.png" alt="">
                <img class="xuanzhong" src="/tp5/public/static/assets/images/icon_2_sel.png" alt="">
            </a>
            <span>卫浴</span>
        </div>
        <div>
            <a href="<?php echo url('Class/class_index',array('type'=>'瓷砖')); ?>">
                <img class="weixuanzhong cizuan" src="/tp5/public/static/assets/images/icon_3_nol.png" alt="">
                <img class="xuanzhong" src="/tp5/public/static/assets/images/icon_3_sel.png" alt="">
            </a>
            <span>瓷砖</span>
        </div>
        <div>
            <a href="<?php echo url('Class/class_index',array('type'=>'地板')); ?>">
                <img class="weixuanzhong diban" src="/tp5/public/static/assets/images/icon_4_nol.png" alt="">
                <img class="xuanzhong" src="/tp5/public/static/assets/images/icon_4_sel.png" alt="">
            </a>
            <span>地板</span>
        </div>
        <div>
            <a href="<?php echo url('Class/class_index',array('type'=>'门窗')); ?>">
                <img class="weixuanzhong menc" src="/tp5/public/static/assets/images/icon_5_nol.png" alt="">
                <img class="xuanzhong" src="/tp5/public/static/assets/images/icon_5_sel.png" alt="">
            </a>
            <span>门窗</span>
        </div>
        <div>
            <a href="<?php echo url('Class/class_index',array('type'=>'墙纸')); ?>">
                <img class="weixuanzhong qiangz" src="/tp5/public/static/assets/images/icon6_nol.png" alt="">
                <img class="xuanzhong" src="/tp5/public/static/assets/images/icon6_sel.png" alt="">
            </a>
            <span>墙纸</span>
        </div>
        <div>
            <a href="<?php echo url('Class/class_index',array('type'=>'灯饰')); ?>">
                <img class="weixuanzhong dengs" src="/tp5/public/static/assets/images/icon_7_nol.png" alt="">
                <img class="xuanzhong" src="/tp5/public/static/assets/images/icon_7_sel.png" alt="">
            </a>
            <span>灯饰</span>
        </div>
        <div>
            <a href="<?php echo url('Class/class_index',array('type'=>'窗帘')); ?>">
                <img class="weixuanzhong chuangl" src="/tp5/public/static/assets/images/icon_8_nol.png" alt="">
                <img class="xuanzhong" src="/tp5/public/static/assets/images/icon_8_sel.png" alt="">
            </a>
            <span>窗帘</span>
        </div>
        <div>
            <a href="<?php echo url('Class/class_index',array('type'=>'衣柜')); ?>">
                <img class="weixuanzhong yigui" src="/tp5/public/static/assets/images/icon_10_nol.png" alt="">
                <img class="xuanzhong" src="/tp5/public/static/assets/images/icon_10_sel.png" alt="">
            </a>
            <span>衣柜</span>
        </div>
        <div>
            <a href="<?php echo url('Class/class_index',array('type'=>'橱柜')); ?>">
                <img class="weixuanzhong cgui" src="/tp5/public/static/assets/images/icon_9_nol.png" alt="">
                <img class="xuanzhong" src="/tp5/public/static/assets/images/icon_9_sel.png" alt="">
            </a>
            <span>橱柜</span>
        </div>

    </div>



    <!-- 合作品牌 -->
    <div class="page_title">
        <img src="/tp5/public/static/assets/images/hotbrand.png" alt="">
    </div>

    <div class="Box">
        <div class="content">
            <div class="Box_con clearfix">

                <!-- 按钮左 -->
                <!-- <span class="btnl btn" id="btnl"> -->
                <img class="btnl btnb" id="btnl" src="/tp5/public/static/assets/images/brand_left.png" alt="">
                <!-- </span> -->

                <!-- 按钮右 -->
                <!-- <span class="btnr btn" id="btnr"> -->
                <img class="btnr btnb" id="btnr" src="/tp5/public/static/assets/images/brand_right.png" alt="">
                <!-- </span> -->

                <div class="conbox" id="BoxUl">
                    <ul>
                        <?php if(is_array($brand_list) || $brand_list instanceof \think\Collection || $brand_list instanceof \think\Paginator): $i = 0; $__LIST__ = $brand_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>

                        <li class="cur">
                            <img src="/tp5/public/<?php echo $v['brand_img']; ?>" alt="">
                            <!-- <span><?php echo $v['brand_name']; ?></span> -->
                        </li>
                        <?php endforeach; endif; else: echo "" ;endif; ?>

                    </ul>
                </div>

                <!-- <p class="BoxSwitch" id="BoxSwitch">
    				<span class="cur"></span>
    				<span></span>
    				<span></span>
    				<span></span>
    			</p> -->

            </div>

        </div>
    </div>
    <!-- <div class="page_title "><img src="/tp5/public/static/assets/images/jiesao2.png " alt=" "></div> -->
    <!-- <div class="Cooldog_container" style="margin-top:-20px;">
        <div class="Cooldog_content">
            <ul>
                <?php if(is_array($brand_list) || $brand_list instanceof \think\Collection || $brand_list instanceof \think\Paginator): $i = 0; $__LIST__ = $brand_list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$v): $mod = ($i % 2 );++$i;?>
                <li class="p1">
                    <a href="#">
                        <img src="/tp5/public/<?php echo $v['brand_img']; ?>" alt="">
                    </a>
                </li>
                <?php endforeach; endif; else: echo "" ;endif; ?>


            </ul>
        </div>
        <a href="javascript:;" class="btn_left">
            <i class="iconfont icon-zuoyoujiantou"></i>
        </a>
        <a href="javascript:;" class="btn_right">
            <i class="iconfont icon-zuoyoujiantou-copy-copy"></i>
        </a>
        <a href="javascript:;" class="btn_close">
            <i class="iconfont icon-icon-test"></i>
        </a>
        <div class="buttons clearfix">
            <a href="javascript:;" class="color"></a>
            <a href="javascript:;"></a>
            <a href="javascript:;"></a>
            <a href="javascript:;"></a>
            <a href="javascript:;"></a>
            <a href="javascript:;"></a>
            <a href="javascript:;"></a>
        </div>
    </div> -->

    <!-- <div class="brand ">
        <div class="brand_left "><img src="/tp5/public/static/assets/images/brand_left.png " alt=" "></div>

        <div class="brand_box ">

            <div class="bradn_middle ">
                <div>
                    <a href=" "><img src="/tp5/public/static/assets/images/pinpai.png " alt=" "><span>百家姓地板</span></a>
                </div>
                <div>
                    <a href=" "><img src="/tp5/public/static/assets/images/pinpai.png " alt=" "><span>2百家姓地板</span></a>
                    <a href=" "><img src="/tp5/public/static/assets/images/pinpai.png " alt=" "><span>百家姓地板</span></a>
                </div>
                <div>
                    <a href=" "><img src="/tp5/public/static/assets/images/pinpai.png " alt=" "><span>3百家姓地板</span></a>
                    <a href=" "><img src="/tp5/public/static/assets/images/pinpai.png " alt=" "><span>百家姓地板</span></a>
                </div>
                <div>
                    <a href=" "><img src="/tp5/public/static/assets/images/pinpai.png " alt=" "><span>4百家姓地板</span></a>
                    <a href=" "><img src="/tp5/public/static/assets/images/pinpai.png " alt=" "><span>百家姓地板</span></a>
                </div>
                <div>
                    <a href=" "><img src="/tp5/public/static/assets/images/pinpai.png " alt=" "><span>5百家姓地板</span></a>
                    <a href=" "><img src="/tp5/public/static/assets/images/pinpai.png " alt=" "><span>百家姓地板</span></a>
                </div>
                <div>
                    <a href=" "><img src="/tp5/public/static/assets/images/pinpai.png " alt=" "><span>6百家姓地板</span></a>
                    <a href=" "><img src="/tp5/public/static/assets/images/pinpai.png " alt=" "><span>百家姓地板</span></a>
                </div>
                <div>
                    <a href=" "><img src="/tp5/public/static/assets/images/pinpai.png " alt=" "><span>7百家姓地板</span></a>
                    <a href=" "><img src="/tp5/public/static/assets/images/pinpai.png " alt=" "><span>百家姓地板</span></a>
                </div>
                <div>
                    <a href=" "><img src="/tp5/public/static/assets/images/pinpai.png " alt=" "><span>8百家姓地板</span></a>
                    <a href=" "><img src="/tp5/public/static/assets/images/pinpai.png " alt=" "><span>百家姓地板</span></a>
                </div>



            </div>

        </div>
        <div class="brand_right "><img src="/tp5/public/static/assets/images/brand_right.png " alt=" "></div>
    </div> -->


    <!-- 我们的优势 -->
    <div class="page_title">
        <img src="/tp5/public/static/assets/images/consumerguidelines.png" alt="">
    </div>

    <!-- 我们的优势 -->
    <div class="youshi">
        <div>
            <img src="/tp5/public/static/assets/images/duidelines-one1.png" alt="">
            <a class="more" href="<?php echo url('about/actor'); ?>">查看更多</a>
        </div>
        <div>
            <img src="/tp5/public/static/assets/images/guidelines-three2.png" alt="">
            <a class="more" href="<?php echo url('about/actor'); ?>">查看更多</a>

        </div>

        <div>
            <img src="/tp5/public/static/assets/images/guidelines-two3.png" alt="">
            <a class="more" href="<?php echo url('about/actor'); ?>">查看更多</a>

        </div>

    </div>

    <div class="journalism">
        <div class="sjxiangce">
            <div style="line-height: 50px; border-bottom: 1px solid #f2f2f2; margin-bottom: 45px;">
                <b style="font-size: 30px;">
                    <span style="color: #e83f44;">晒家</span>相册</b>
                <a class="tiaozhuan pull-right" href="<?php echo url('house/index'); ?>">更多</a>
            </div>
            <div class="sjxiangce_neir">
                <div class="sjxiangce_img">
                    <img src="/tp5/public/static/assets/images/shaijia_01.png" alt="">
                </div>
                <div class="sjxiangce_text">
                    <a href="<?php echo url('Home/sjshaijia1'); ?>">
                        <p>素雅的色调让厨房看起来更整洁</p>
                    </a>
                    <span>当初我就是想做一个素色的橱柜，刚好在莫愁商城上找到了类似的商品。是我喜欢的清新白色，重要的是我可以把厨房空间利用好，另一方面保持空间的通透性。</span>
                </div>
            </div>
            <div class="sjxiangce_neir">
                <div class="sjxiangce_img">
                    <img src="/tp5/public/static/assets/images/shaijia_02.png" alt="">
                </div>
                <div class="sjxiangce_text">
                    <a href="<?php echo url('Home/sjshaijia2'); ?>">
                        <p>简单大方半开放式厨房</p>
                    </a>
                    <span>家里人对这款橱柜非常喜欢，我也是在莫愁商城上看中了面板的颜色和橱柜整体设计样式，在这样的厨房里才能为家人坐吃一顿丰盛的晚餐。</span>
                </div>
            </div>
            <div class="sjxiangce_neir">
                <div class="sjxiangce_img">
                    <img src="/tp5/public/static/assets/images/shaijia_03.png" alt="">
                </div>
                <div class="sjxiangce_text">
                    <a href="<?php echo url('Home/sjshaijia3'); ?>">
                        <p>淡黄主调与原木搭配</p>
                    </a>
                    <span>去年我和家里人正在纠结装修方案，整个武汉的家装市场被我们跑了个遍，最终还是在莫愁商城里找到了中意的建材，实际</span>
                </div>
            </div>
            <div class="sjxiangce_neir">
                <div class="sjxiangce_img">
                    <img src="/tp5/public/static/assets/images/shaijia_04.png" alt="">
                </div>
                <div class="sjxiangce_text">
                    <a href="<?php echo url('Home/sjshaijia4'); ?>">
                        <p>充满童趣和想象的儿童房</p>
                    </a>
                    <span>这是我们家孩子的房间，当初从老家搬过来时就答应他一定要给他属于自己的空间。</span>
                </div>
            </div>
        </div>


        <div class="sjxiangce">
            <div style="line-height: 50px; border-bottom: 1px solid #f2f2f2; margin-bottom: 45px;">
                <b style="font-size: 30px;">
                    <span style="color: #e83f44;">新闻</span>动态</b>
                <a class="tiaozhuan pull-right" href="<?php echo url('about/new_list'); ?>">更多</a>
            </div>
            <div class="sjxiangce_neir">
                <div class="sjxiangce_img">
                    <img src="/tp5/public/static/assets/images/pagexinwen_01.png" alt="">
                </div>
                <div class="sjxiangce_text">
                    <a href="<?php echo url('News/tuan'); ?>">
                        <p>莫愁商城携手顶固家居打造团购会</p>
                    </a>
                    <span>7月钜惠，莫愁商城联合顶固全屋定制携手打造江城最火热的建材家居团购会，活动时间定于2017年7月21日~7月22日，活动两天全场特价商品低至6折……</span>
                </div>
            </div>
            <div class="sjxiangce_neir">
                <div class="sjxiangce_img">
                    <img src="/tp5/public/static/assets/images/pagexinwen_02.png" alt="">
                </div>
                <div class="sjxiangce_text">
                    <a href="<?php echo url('News/shou'); ?>">
                        <p>2018莫愁商城首次团建圆满收官</p>
                    </a>
                    <span>为了促进公司各部门间的交流，培养员工团队精神，进一步增强团队竞争力，由公司行政部小姐姐们牵头组织、各部门大力配合，共同完成了莫愁商城首次……</span>
                </div>
            </div>
            <div class="sjxiangce_neir">
                <div class="sjxiangce_img">
                    <img src="/tp5/public/static/assets/images/pagexinwen_03.png" alt="">
                </div>
                <div class="sjxiangce_text">
                    <a href="<?php echo url('News/jie'); ?>">
                        <p>2018莫愁商城战略合作品牌揭晓</p>
                    </a>
                    <span>莫愁商城为搭建O2O一站式家具建材免息购物平台，2018年与来自行业类不同品类的120多个知名家居品牌签订了战略合作、莫愁商城创始人刘博表示……</span>
                </div>
            </div>
            <div class="sjxiangce_neir">
                <div class="sjxiangce_img">
                    <img src="/tp5/public/static/assets/images/pagexinwen_04.png" alt="">
                </div>
                <div class="sjxiangce_text">
                    <a href="<?php echo url('News/ze'); ?>">
                        <p>浙商银行携手莫愁商城</p>
                    </a>
                    <span>首先热烈贺莫愁商城与浙商银行正式成为战略合作伙伴，双方共同大招家居建材购买免息服务。据悉，此次莫愁练手浙商银行，将使莫愁商城的客户获得……</span>
                </div>
            </div>


        </div>
        <div class="dongtai"></div>

    </div>


    <div class="mochou_tel">
        <!-- <div class="mochou_tel_left">
            <div style="line-height: 42px;">
                <img style="margin-bottom: 16px;" src="/tp5/public/static/assets/images/tel2.png" alt="">
                <b style="margin-left: 20px; font-size: 32px; color: #fefefe;">400-900-2355</b>

            </div>
            <div>
                <img src="/tp5/public/static/assets/images/dizhi2.png" alt="">
                <span style="margin-left: 20px; font-size: 22px; color: #fefefe;">武汉市江汉区建设大道737号
                    <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;广发银行大厦36F
                </span>
            </div>
        </div> -->
        <div class="mochou_tel_left">
            <h3 style="text-align: center; font-size: 24px;color: #fff;">更多精彩体验请下载“莫愁商城APP”
            </h3>
            <!-- <h1 style="font-size: 32px;text-align: center;margin-top: 100px;color: #fff;">敬请期待!</h1> -->
            <div style="text-align: center;margin:20px 0 10px 0; ">
                <img style="width: 120px; margin-right: 100px;" src="/tp5/public/static/assets/images/Androidewm.png" alt="">
                <img style="width: 120px;" src="/tp5/public/static/assets/images/Androidewm.png" alt="">
            </div>
            <div style="display: flex;">
                <span style="color: #fff; display: block; width: 120px; margin-left: 118px;;">Android平台下载</span>
                <span style="color: #fff; display: block;width: 120px; margin-left: 118px;">IOS平台下载</span>
            </div>
        </div>

        <div class="mochou_tel_right">
            <h3 style="font-size:24px;">更多优惠活动请添加莫愁官方微信</h3>
            <div style="margin-bottom:10px;">
                <img style="margin-right: 120px;" src="/tp5/public/static/assets/images/erweima.png" alt="">
                <img src="/tp5/public/static/assets/images/wxerweim.png" alt="">
            </div>
            <p>
                <span style="margin-right:170px;">微信公众号</span>
                <span>微信小程序</span>
            </p>
        </div>

    </div>





    <!-- 底部 -->
    <div id="buttom" class="buttom">
    <div class="buttom_details">
        <div class="buttom_details2">
            <b>关于莫愁</b>
            <div class="fenge"></div>

            <a href="<?php echo url('About/index'); ?>">
                <span class=""></span>
                <span>公司介绍</span>
            </a>
            <a href="<?php echo url('About/new_list'); ?>">
                <span class=""></span>
                <span>新闻动态</span>
            </a>
            <a href="<?php echo url('About/new_list'); ?>">
                <span class=""></span>
                <span>媒体报道</span>
            </a>
            <a href="<?php echo url('About/recruit'); ?>">
                <span class=""></span>
                <span>加入莫愁</span>
            </a>
        </div>


        <div class="buttom_details2">
            <b>帮助中心</b>
            <div class="fenge"></div>

            <a href="<?php echo url('About/actor'); ?>">
                <span class=""></span>
                <span>购物指南</span>
            </a>
            <a href="<?php echo url('bottom/explain'); ?>">
                <span class=""></span>
                <span>购物保障</span>
            </a>
            <a href="<?php echo url('bottom/mode'); ?>">
                <span class=""></span>
                <span>常见问题</span>
            </a>
            <a href="<?php echo url('About/contact'); ?>">
                <span class=""></span>
                <span>意见投诉</span>
            </a>

        </div>

        <div class="buttom_details2">
            <b>服务支持</b>
            <div class="fenge"></div>
            <a href="<?php echo url('bottom/brand_title'); ?>">
                <span class=""></span>
                <span>用户协议</span>
            </a>
            <a href="<?php echo url('About/contact'); ?>">
                <span class=""></span>
                <span>售后服务</span>
            </a>
            <a href="<?php echo url('bottom/process'); ?>">
                <span class=""></span>
                <span>关于贴息</span>
            </a>
            <!-- <a href="<?php echo url('bottom/sign'); ?>">
                <span class=""></span>
                <span>关于积分</span>
            </a> -->

            <!-- <a href="">
                <span class=""></span>
                <span>我的积分</span>
            </a> -->
        </div>

        <div class="buttom_details2">
            <b>商业合作</b>
            <div class="fenge"></div>

            <a href="<?php echo url('About/contact'); ?>">
                <span class=""></span>
                <span>品牌合作</span>
            </a>
            <a href="<?php echo url('About/contact'); ?>">
                <span class=""></span>
                <span>媒体合作</span>
            </a>
            <a href="<?php echo url('About/contact'); ?>">
                <span class=""></span>
                <span>设计团队入驻</span>
            </a>
            <a href="http://www.chinaznj.com" target="_blank">
                <span class=""></span>
                <span>中华智能家居网</span>
            </a>

            <!-- <a href="">
                    <span class=""></span>
                    <span>我的积分</span>
                </a> -->
        </div>


        <div class="bottom_right">
            <div style="width: 570px;height: 258px;background: #E83F44;display: flex;padding: 70px;">
                <div style="margin-top: 5px; margin-bottom:15px;">
                    <p>服务热线：</p>
                    <p>公司地址：</p>
                </div>
                <div>
                    <p style="font-size:36px;margin-bottom: 35px;">400-900-2355</p>
                    <p style="margin-bottom: 10px;">武汉市江汉区建设大道</p>
                    <p>737号广发银行大厦36F</p>
                </div>
            </div>

        </div>

    </div>
    <div style="height: 1px;background: #F1F1F1;"></div>

    <div class="buttom_security">
        <p>Copyright &nbsp;©&nbsp; 2017 莫愁科技（武汉）有限公司 &nbsp;|&nbsp; 版权所有</p>
        <p>增值电信业务经营许可证：鄂B2-20170119 &nbsp;|&nbsp; 鄂ICP备17015005号 &nbsp;| </p>
        <p>
            <img src="/tp5/public/static/assets/images/gongan.png" alt=""> &nbsp;鄂公网安备 42010302000801号</p>

    </div>

</div>
<script>
    function adddianji() {
        layer.msg('您还没有登录，请先登录！');
    }

    function adddianji1() {
        $('.log').attr("href", "<?php echo url('Core/index'); ?>")

    }

    function jifen1() {
        layer.msg('您还没有登录，请先登录！');

    }

    function jifen2() {
        $('.log').attr("href", "<?php echo url('Core/integral'); ?>")

    }
</script>

</body>

<script src="/tp5/public/static/assets/arr_css/jquery-3.3.1.js"></script>
<script type="text/javascript" src="/tp5/public/static/assets/arr_css/jquery.SuperSlide2.js"></script>
<script src="/tp5/public/static/assets/arr_css/bootstrap.min.js"></script>
<script src="/tp5/public/static/assets/arr_css/head.js"></script>
<script src="/tp5/public/static/assets/index_css/index.js"></script>
<script src="/tp5/public/static/layer/layer.js"></script>
<script src="/tp5/public/static/layui/layui.js"></script>
<script type="text/javascript" src="/tp5/public/static/assets/index_brand/js/jquery.min.js"></script>
<script type="text/javascript" src="/tp5/public/static/assets/index_brand/js/Cooldog.js"></script>
<!-- <script type="text/javascript" src="/tp5/public/static/assets/index_brand/js/jquery.easing.1.3.js"></script> -->
<script type="text/javascript" src="/tp5/public/static/assets/index_brand/js/Lunbo.js"></script>


<script>
    $('#exampleModal').on('show.bs.modal', function (event) {
        var button = $(event.relatedTarget) // Button that triggered the modal
        var recipient = button.data('whatever') // Extract info from data-* attributes
        // If necessary, you could initiate an AJAX request here (and then do the updating in a callback).
        // Update the modal's content. We'll use jQuery here, but you could use a data binding library or other methods instead.
        var modal = $(this)
        modal.find('.modal-title').text('New message to ' + recipient)
        modal.find('.modal-body input').val(recipient)
    })
</script>
<script>
    function delseeling() {
        $.ajax({
            type: "POST",
            url: "<?php echo url('Login/delseeling'); ?>",
            beforeSend: function () {
                layer.load(0, {
                    shade: false
                });
            },
            success: function (msg) {
                if (msg == 1) {
                    layer.msg('注销成功，欢迎下次来玩哟', {
                        icon: 1
                    });
                    history.go(0);
                }
                // if (msg == 1111) {
                //     layer.msg('已通过!ヾ(o◕∀◕)ﾉ 好棒~', {icon: 1});
                //     history.go(0); 
                // }else{
                //     layer.msg('申请失败,请重新再试!');
                // }
            },
            complete: function () {
                layer.closeAll('loading');
            }
        });
    }

    // 清楚selling
    // function del_login()
    // {
    //     console.log('111');
    //     // $.ajax({
    //     //      type: "POST",
    //     //      url:"<?php echo url('Login/delseeling'); ?>",
    //     //      data:formData,// 要提交的表单 
    //     //      beforeSend:function(){
    //     //            layer.load(0, {shade: false});
    //     //         },
    //     //      success: function(msg) {
    //     //         if (msg == 1) {
    //     //             layer.msg('注销成功，欢迎下次来玩哟', {icon: 1});
    //     //             history.go(0); 
    //     //         }
    //     //         // if (msg == 1111) {
    //     //         //     layer.msg('已通过!ヾ(o◕∀◕)ﾉ 好棒~', {icon: 1});
    //     //         //     history.go(0); 
    //     //         // }else{
    //     //         //     layer.msg('申请失败,请重新再试!');
    //     //         // }
    //     //      },
    //     //      complete: function() {
    //     //              layer.closeAll('loading');
    //     //         }
    //     //  });

    // }

    function register_to() {
        layer.open({
            type: 1,
            title: '莫愁商城',
            skin: 'demo-class', //加上边框
            area: ['432px', '515px'], //宽高
            content: $('#register_form')
        });
    }


    function login() {
        //页面层
        layer.open({
            type: 1,
            title: '莫愁商城',
            skin: 'demo-class', //加上边框
            area: ['432px', '515px'], //宽高
            content: $('#login_form')
        });
    }


    function register() {
        $('#login_go').hide();
        $('#register_go').show();
        // $
    }

    function login_to() {
        $('#login_go').show();
        $('#register_go').hide();
    }


    function login_res() {
        $('#login_go_to').show();
        $('#register_go_to').hide();
    }

    function register_res() {
        $('#login_go_to').hide();
        $('#register_go_to').show();
        // $
    }

    // 注册一
    function go_register_to() {
        var formData = $("#formpost_register").serialize();
        // console.log(formData);
        $.ajax({
            type: "POST",
            url: "<?php echo url('Login/register'); ?>",
            data: formData, // 要提交的表单 
            beforeSend: function () {
                layer.load(0, {
                    shade: false
                });
            },
            success: function (msg) {
                console.log(msg);
                if (msg == 1) {
                    layer.msg('恭喜您，注册成功！', {
                        icon: 1
                    });
                    $('#login_go').show();
                    $('#register_go').hide();
                } else if (msg == 2) {
                    layer.msg('注册失败，请重试');
                } else if (msg == 3) {
                    layer.msg('验证码错误，请重试！');
                }
                // if (msg == 1111) {
                //     layer.msg('已通过!ヾ(o◕∀◕)ﾉ 好棒~', {icon: 1});
                //     history.go(0); 
                // }else{
                //     layer.msg('申请失败,请重新再试!');
                // }
            },
            complete: function () {
                layer.closeAll('loading');
            }
        });


    }

    // 注册二
    function go_register() {
        var formData = $("#formpost_register_to").serialize();
        // console.log(formData);
        $.ajax({
            type: "POST",
            url: "<?php echo url('Login/register'); ?>",
            data: formData, // 要提交的表单 
            beforeSend: function () {
                layer.load(0, {
                    shade: false
                });
            },
            success: function (msg) {
                console.log(msg);
                if (msg == 1) {
                    layer.msg('恭喜您，注册成功！', {
                        icon: 1
                    });
                    $('#login_go_to').show();
                    $('#register_go_to').hide();
                } else if (msg == 2) {
                    layer.msg('注册失败，请重试');
                } else if (msg == 3) {
                    layer.msg('验证码错误，请重试！');
                }
                // if (msg == 1111) {
                //     layer.msg('已通过!ヾ(o◕∀◕)ﾉ 好棒~', {icon: 1});
                //     history.go(0); 
                // }else{
                //     layer.msg('申请失败,请重新再试!');
                // }
            },
            complete: function () {
                layer.closeAll('loading');
            }
        });


    }

    function del() {
        console.log('11');
    }
    // 验证码一
    function code(t) {
        $('#go_code').disabled = true;

        var phone = $('#code_phone').val();
        console.log(phone);
        if (phone == '' || phone.length < 11 || phone.length > 11 || !(
                /^((\d{3}-\d{8}|\d{4}-\d{7,8})|(1[3|5|7|8][0-9]{9}))$/.test(phone))) {
            layer.msg('请输入正确的手机号码');
        } else {
            for (i = 1; i <= t; i++) {
                window.setTimeout("update_p(" + i + "," + t + ")", i * 1000);
            }

            $.ajax({
                type: "POST",
                url: "<?php echo url('Login/verification'); ?>",
                data: {
                    'phone': phone
                }, // 要提交的表单 
                beforeSend: function () {
                    layer.load(0, {
                        shade: false
                    });
                },
                success: function (msg) {
                    console.log(msg);
                    if (msg == 1) {
                        layer.msg('短信已发送', {
                            icon: 1
                        });
                    } else if (msg == 2) {
                        layer.msg('注册失败，请重试！');
                    } else if (msg == 4) {
                        layer.msg('请不要重复发送短信！');
                    } else if (msg == 5) {
                        layer.msg('手机号码已存在！');
                    }
                },
                complete: function () {
                    layer.closeAll('loading');
                }
            });
        }

    }

    function update_p(num, t) {
        if (num == t) {
            $('#go_code').html('获取短信验证码');
            $('#go_code').css("color", "#007bbb");
            $('#go_code').disabled = false;
            $('#go_code').css("pointer-events", "auto");
        } else {
            printnr = t - num;
            // document.myform.phone.value = " (" + printnr +")秒后重新发送";
            $('#go_code').html(" " + printnr + "秒后重新发送");
            $('#go_code').css("color", "#ccc");
            $('#go_code').css("pointer-events", "none");
        }
    }


    // 验证码二
    function codeto(t) {
        $('#go_code_to').disabled = true;

        var phone = $('#code_phone_to').val();
        console.log(phone);
        if (phone == '' || phone.length < 11 || phone.length > 11 || !(
                /^((\d{3}-\d{8}|\d{4}-\d{7,8})|(1[3|5|7|8][0-9]{9}))$/.test(phone))) {
            layer.msg('请输入正确的手机号码');
        } else {
            for (i = 1; i <= t; i++) {
                window.setTimeout("update_po(" + i + "," + t + ")", i * 1000);
            }

            $.ajax({
                type: "POST",
                url: "<?php echo url('Login/verification'); ?>",
                data: {
                    'phone': phone
                }, // 要提交的表单 
                beforeSend: function () {
                    layer.load(0, {
                        shade: false
                    });
                },
                success: function (msg) {
                    console.log(msg);
                    if (msg == 1) {
                        layer.msg('短信已发送', {
                            icon: 1
                        });
                    } else if (msg == 2) {
                        layer.msg('注册失败，请重试！');
                    } else if (msg == 4) {
                        layer.msg('请不要重复发送短信！');
                    } else if (msg == 5) {
                        layer.msg('手机号码已存在！');
                    }
                },
                complete: function () {
                    layer.closeAll('loading');
                }
            });
        }

    }

    function update_po(num, t) {
        if (num == t) {
            $('#go_code_to').html('获取短信验证码');
            $('#go_code_to').css("color", "#007bbb");
            $('#go_code_to').disabled = false;
            $('#go_code_to').css("pointer-events", "auto");
        } else {
            printnr = t - num;
            // document.myform.phone.value = " (" + printnr +")秒后重新发送";
            $('#go_code_to').html(" " + printnr + "秒后重新发送");
            $('#go_code_to').css("color", "#ccc");
            $('#go_code_to').css("pointer-events", "none");
        }
    }


    // 登入一
    function go_login() {
        var formData = $("#login_formpost").serialize();
        // console.log(formData);
        $.ajax({
            type: "POST",
            url: "<?php echo url('Login/login_add'); ?>",
            data: formData, // 要提交的表单 
            beforeSend: function () {
                layer.load(0, {
                    shade: false
                });
            },
            success: function (msg) {
                console.log(msg);
                if (msg == 1) {
                    layer.msg('登入成功！'， {
                        icon: 1
                    });
                    history.go(0);
                } else {
                    layer.msg('登入失败，请重新登入！');
                }
                // if (msg == 1111) {
                //     layer.msg('已通过!ヾ(o◕∀◕)ﾉ 好棒~', {icon: 1});
                //     history.go(0); 
                // }else{
                //     layer.msg('申请失败,请重新再试!');
                // }
            },
            complete: function () {
                layer.closeAll('loading');
            }
        });
    }
</script>



</html>
